const beforeRouteEnter = (to, from, next) => {
  next((vm) => {
    const navs = [
      {
        name: "home",
        title: "博客首页",
        path: "/home",
      },
      { name: to.name, title: to.meta ? to.meta.title : "", path: to.path },
    ];
    vm.navs = navs;
    console.log(vm);
  });
};

export default beforeRouteEnter;
